@echo off
REM 验证make和ARM工具链的CMD脚本

REM 验证make是否可用
echo Checking make version...
"C:\Program Files (x86)\GnuWin32\bin\make.exe" --version
if %errorlevel% neq 0 (
    echo 错误: 未找到make工具，请确保已安装Make for Windows
    echo 建议从 http://gnuwin32.sourceforge.net/packages/make.htm 下载安装
    exit /b 1
)

REM 验证ARM工具链是否可用
echo.
echo Checking ARM toolchain...
"D:\arm-gnu-toolchain-14.3.rel1-mingw-w64-i686-arm-none-eabi\bin\arm-none-eabi-gcc.exe" --version
if %errorlevel% neq 0 (
    echo 错误: 未找到ARM工具链，请检查路径是否正确
    exit /b 1
)

echo.
echo 编译环境检查通过!
exit /b 0